package MapBase.logic.control.Entity
{
	import com.utils.keymanager.KeyCombo;
	import com.utils.keymanager.KeyManager;
	
	import flash.display.Sprite;

	public class Entity
	{
		private var _entity:Sprite;
		
		private var _depthDot : EntityDepthDot;
		
		public function Entity(entity:Sprite)
		{
			_entity = entity;
		}
		
		public function keyControl(keyCode:uint) : void
		{
			_depthDot.keyControl(keyCode);
		}
		
		public function startDragDepthDot():void
		{
			_depthDot.startDrag();
		}
		
		public function stopDragDepthDot():void
		{
			_depthDot.stopDrag();
		}
		
		public function showDepthDot():void
		{
			_depthDot = new EntityDepthDot(_entity);
		}
		
		public function hideDepthDot():void
		{
			_depthDot.clear();
		}
	}
}